package com.xuecheng.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xuecheng.model.dto.TeachplanDto;
import com.xuecheng.model.po.Teachplan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课程计划 Mapper 接口
 * </p>
 *
 * @author 小班哥
 * @since 2023-03-11
 */

@Mapper
public interface TeachplanMapper extends BaseMapper<Teachplan> {
    List<TeachplanDto> selectTreeNodes(long courseId);

    Integer SelectOrderMax(@Param("teachplan") Teachplan teachplan);

    void PullUP(@Param("teachplan") Teachplan teachplan ,@Param("symbol") String symbol);
    void PullDown(@Param("teachplan") Teachplan teachplan ,@Param("symbol") String symbol);
}
